import { defHttp } from '/@/utils/http/axios';

enum Api {
  UploadFile = '/api/api/file',
}

export function uploadFIle(file: File) {
  return defHttp.uploadFile(
    {
      url: Api.UploadFile,
    },
    {
      file,
      data: {
        file,
        name: file.name,
      },
    },
  );
}
